/**
 * 返回上一级
 * 
 * @returns
 */
function back() {
	window.history.go(-1);
}
/**
 * 关闭当前的页面
 * @returns
 */
function close() {
	if (typeof (WeixinJSBridge) != "undefined") {
		WeixinJSBridge.call('closeWindow');
	} else {
		if (navigator.userAgent.indexOf("MSIE") > 0) {
			if (navigator.userAgent.indexOf("MSIE 6.0") > 0) {
				window.opener = null;
				window.close();
			} else {
				window.open('', '_top');
				window.top.close();
			}
		} else if (navigator.userAgent.indexOf("Firefox") > 0) {
			window.location.href = 'about:blank ';
			// window.history.go(-2);
		} else {
			window.opener = null;
			window.open('', '_self', '');
			window.close();
		}
	}
}


